﻿@*@model iChip.Hotspots.Controllers.FieldTypeTest*@
@model List<iChip.Hotspots.Controllers.FieldTypeId>
@{
    ViewBag.Title = "TestDropdownlist";
}

<h2>TestDropdownlist</h2>
@*@foreach(var item in Model.Field_Ids)
{ 
@Html.DropDownListFor(m => item.Field_Id, item.Field_Type, new { @class = "form-control", Name = "Field_Type" })
@Html.TextBoxFor(m => item.Field_Id, new { @class = "form-control" })
<br /><br />
}*@
@foreach(var item in Model)
{ 
@Html.DropDownListFor(model => item.Field_Id, new SelectList(
              item.Field_Type,
              "Value",
              "Text",
              item.Field_Id), new { @class = "form-control", Name = "Field_Type" })
@Html.TextBoxFor(m => item.Field_Id, new { @class = "form-control" })
}